﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ATSBLL;

public partial class Airtightness_AirtightnessProductTypeList : System.Web.UI.Page
{
    private Airtightness airtightness;

    public Airtightness_AirtightnessProductTypeList()
    {
        airtightness = new Airtightness();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 根据时间查询包装信息
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void buSelect_Click(object sender, EventArgs e)
    {
        Bind();
    }

    /// <summary>
    /// 绑定数据
    /// </summary>
    public void Bind()
    {  
        string ptype = this.tbPtype.Text.Trim();
        GridView1.DataSource = airtightness.Airtightness_SelectbyPType(ptype);
        GridView1.DataBind();
    } 
     

    /// <summary>
    /// 分页加载
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        Bind();
    }
}
